function onLogin(cid)
	local PremiumOutfits = { 140, 141, 142, 147, 148, 149, 150, 155, 156, 157, 158, 252, 269, 270, 279, 288, 132, 133, 134, 143, 144, 145, 146, 151, 152, 153, 154, 251, 268, 273, 278, 289 }
	
	if(getPlayerAccess(cid) >= getConfigInfo('access_gamemaster_light')) then doSetCreatureLight(cid, 10, 215, -1); end
	if(isPremium(cid) == TRUE) then
		if(getPlayerVocation(cid) >= 1 and getPlayerVocation(cid) <= 4) then
			if(getPlayerStorageValue(cid, PROMOTION_STORAGE) == 1) then
				doPlayerSetVocation(cid, getPlayerVocation(cid) + 4)
			end
		end	
	else
		if(getPlayerVocation(cid) > 4) then
			doPlayerSetVocation(cid, getPlayerVocation(cid) - 4)
		end	
		local playerOutfit = getCreatureOutfit(cid)
		if isInArray( PremiumOutfits, playerOutfit.lookType ) == TRUE then
			local lookType = nil
			if(getPlayerSex(cid) == FEMALE) then
				lookType = 136
			else
				lookType = 128
			end
			doCreatureChangeOutfit(cid, {lookType = lookType, lookHead = 78, lookBody = 69, lookLegs = 97, lookFeet = 95, lookAddons = 0})
		end
		dofile(getDataDir() .. '/game_classes/house.lua')
		local house = House.getHouseByOwner(cid)
		if(house)then house:setOwner(0); end
	end
	return TRUE
end